#!/bin/sh
while true ; do
    curtime=$(date "+%H%M%S")
    if  [ -z "`ps  aux | grep 'django_server_start.sh' | grep -v grep`" ];then
 		source activate kg-front	
      	nohup sh django_server_start.sh  &
	echo "$curtime  nohup sh django_server_start.sh  &"
    fi
    if  [ -z "`ps  aux | grep 'en_sever.py' | grep -v grep`" ];then
 	source activate kg-front		
	cd ./en_create/
      	nohup python en_sever.py & 
	cd ..
	echo "$curtime  nohup python en_sever.py &  "
    fi
    sleep 10
done

